import PubSub from 'pubsub-js';
<template>
  <div>
    <hr />
    <h1>小熊大</h1>
    <hr />
  </div>
</template>

<script>
/* 



*/
import PubSub from "pubsub-js";
export default {
  mounted() {
    // 订阅消息
    PubSub.subscribe("yangyang", (msg, anima) => {
      console.log(anima);
    });
  },
};
</script>

<style lang="scss" scoped>
</style>